#!/usr/bin/python
# encoding: utf-8;
# from importlib.resources import path
import os
import os.path
from stat import *
import sys

sys.path.append("../../..")
from s2c.rules.conf import DOCKER_PATH_TMP

# =============mysql相关依赖文件配置==========start===========================
# 需要手动copy的文件
mysql_file = ['/etc/my.cnf']

# 需要手动删除的临时文件
mysql_tmp_file = []


# =============mysql相关依赖文件配置==========end===========================

# mysql配置
def mysql_cfg():
    for item in mysql_file:
        if os.path.exists(item):
            cmd = '\cp -rf ' + item + ' ' + DOCKER_PATH_TMP + item
            os.system(cmd)
    for item in mysql_tmp_file:
        file_path = DOCKER_PATH_TMP + item
        if os.path.exists(file_path):
            cmd = 'rm -rf ' + file_path
            os.system(cmd)
    return


#  man 方法
def main():
    print("Hello, mysql!")


if __name__ == "__main__":
    main()
